# -*- coding:utf-8 -*-
# Author:XG
import copy
from datetime import datetime

class P(object):
    time1 = datetime.now()

    def eat(self, food):
        print(self.time1)
        self.created_time = self.time1.strftime("%Y-%m-%d %H:%M:%S")

        data = self.__dict__
        data_dict = copy.deepcopy(data)
        print(data)
        print('------------------------')
        print(data_dict)
        print('------------------------')
        print(self)
        print('------------------------')
        print(food)

class C(P):
    name = 'laobiming'
    age = 18

c = C()
c.eat('baozi')




